Skip to content

Recommend environment secrets#274

Open
jack-berg wants to merge 2 commits into
open-telemetry:mainfrom
jack-berg:recommend-environment-secrets
Open

Recommend environment secrets#274
jack-berg wants to merge 2 commits into
open-telemetry:mainfrom
jack-berg:recommend-environment-secrets

Conversation

@jack-berg
Copy link
Copy Markdown
Member

Comment thread docs/recommendations.md
Comment on lines +74 to +76
4. Remove the corresponding repository-level secrets. If both exist, the
repository-level secret remains accessible from any branch, defeating the
purpose.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe swap ordering of 4 and 5, and mention something about may need to backport the release workflow update if making an older patch release

Comment thread docs/recommendations.md

Steps:

1. Create an environment (e.g., `protected`) in the repository settings.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should recommend setting it up properly via Terraform in https://github.com/open-telemetry/admin.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow I totally forgot I did this: https://github.com/open-telemetry/admin/pull/595

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But even with the environment setup in terraform, maintainers still need admin to be able to go and manage secrets for that environment yeah?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, looks like it

Comment thread docs/recommendations.md

Caveats:

- Repository admin permission is required to create environments and manage
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Repository admin permission is required to create environments and manage
- Repository admin permission is required to manage

not if done via Terraform (https://github.com/open-telemetry/sig-security/pull/274/changes#r3318814752)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @arminru's suggestion here is just to remove the "create environments" portion, since better to do that part via terraform.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jack-berg please let me know when this is addressed and the PR is ready to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants